package club.baimahu.pencil.domain.entity;


/**
 * 供应商工厂
 */
public class VirtualSupplierFactory {

     static Supplier supplier;

    public static Supplier getVirtualSupplier(){
        if(supplier == null){
            synchronized (VirtualSupplierFactory.class){
                if(supplier == null){
                    return new VirtualSupplier();
                }
            }
        }
        return supplier;
    }
}
